/* 基础样式 */
body {
    font-family: 'Segoe UI', '微软雅黑', sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* 输入区域 */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#amountInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1557b0;
}

/* 结果展示 */
.result-box {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    background: #f8f9fa;
    min-height: 60px;
}

.result-box.success {
    border: 2px solid #34a853;
    color: #34a853;
}

.result-box.error {
    border: 2px solid #ea4335;
    color: #ea4335;
}

/* 说明区域 */
.instructions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.instructions h3 {
    color: #1a73e8;
    margin-top: 0;
}

.instructions code {
    background: #e8f0fe;
    padding: 2px 6px;
    border-radius: 4px;
}
